export const asyncSetStorage = (key,data) =>
{
	return new Promise((resolve) =>{
		const res = uni.setStorage({
			key,
			data,
			complete: (res) => {
				resolve(res)
			}
		})
	})
}

export const asyncGetStorage = (key) =>
{
	return new Promise((resolve) =>{
		uni.getStorage({
			key,
			complete: (res) => {
				resolve(res)
			}
		})
	})
}
export const asyncRemoveStorage = (key) =>
{
	return new Promise((resolve) =>{
		uni.removeStorage({
			key,
			complete: (res) => {
				resolve(res)
			}
		})
	})
}
export const asyncClearStorage= () =>
{
	return new Promise((resolve) =>{
		uni.clearStorage({
			complete: (res) => {
				resolve(res)
			}
		})
	})
}